Skip to content

Conversation

@jan-ivar
Copy link
Contributor

@jan-ivar jan-ivar commented Oct 28, 2025

Add a "webtransport" request mode modeled on "websocket" to integrate WebTransport in a manner similar (but not identical) to WebSockets. Not exposed.

Fixes #1808.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good modulo nits. One question: the WebTransport handshake doesn't have the 101 response handling?

@jan-ivar
Copy link
Contributor Author

One question: the WebTransport handshake doesn't have the 101 response handling?

Thanks for calling that out, no it doesn't but we probably need to break out at the same spot if mode == "webtransport" right?

WebTransport does not use 101. It uses extended CONNECT, and a 2xx response establishes the session, after which the CONNECT stream is treated as the live session.

@annevk
Copy link
Member

annevk commented Nov 18, 2025

If we don't expect a 101 response with WebTransport we don't have to hand control back to WebTransport when we do encounter a 101, so I think not breaking is fine. I didn't know about Extended CONNECT.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you want to land this, land WebTransport first so you can link the connection bit?

Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Add link to webtransport
@jan-ivar
Copy link
Contributor Author

@annevk I've merged w3c/webtransport#697 and added the link, but the link isn't working (yet?) in PR preview, or I've forgotten something.

@annevk
Copy link
Member

annevk commented Nov 19, 2025

I suspect PR Preview is just on a slower update cycle of sorts. It reports a LINK ERROR which would make our CI fail and our CI doesn't fail so I think it's fine.

@annevk annevk added the topic: webtransport WebTransport integration label Nov 19, 2025
@annevk annevk merged commit 0f3e00d into whatwg:main Nov 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: webtransport WebTransport integration

Development

Successfully merging this pull request may close these issues.

Add a "webtransport" request mode

2 participants